package com.ocpjp;

import com.ocpjp.model.User;

public class UsersHomework {

	public static void main(String[] args) {

		User users = new User();
	
		String allUsers = "Jan,Kowalski,1950-01-01;Wacek,Placek,1975-03-23;Jane,Doe,1990-04-20;Albert,Einstein,1978-03-14";
		String[] usersToArray = allUsers.split(";");
		
		for (int i = 0; i < usersToArray.length; i++) {
			users.parse(usersToArray[i]);
			System.out.println(users.name + users.surname + users.dob); 
		}
		
	}

}
